package ClimateControlProcessor.ClimateObjects;

public class BlowerMotor {
	private int portNo;
	private int currentSpeed;
	
	public BlowerMotor()
	{
		portNo = 0;
		currentSpeed = 0;
	}	
	
	// Get Port No.
	public int getPortNo(){return portNo;}
	public void setPortNo(int _portNo){ portNo = _portNo;}
	
	// Get Current Speed
	public int getCurrentSpeed(){return currentSpeed;}
	public void setCurrentSpeed(int _speed){ currentSpeed = _speed;}
	public int getSeekBarValue(){
		if(currentSpeed < 0){
			return 0;
		}
		
		int freSpeed = currentSpeed*(Constant.SEEKBAR_MAX)/Constant.VALUE100;
		return freSpeed;
	}
}
